-- require("nvim-tree.events").on_nvim_tree_ready(function()nvitree
-- 	vim.cmd("NvimTreeRefresh")
-- end)
-- vim.g.nvim_tree_git_hl = 1

-- local tree_cb = require("nvim-tree.config").nvim_tree_callback
-- local nvim_tree_bindings = {
-- 	{ key = "[g", cb = tree_cb("prev_git_item") },
-- 	{ key = "]g", cb = tree_cb("next_git_item") },
-- }
local nvim_tree_show_icons = {
	git = 1,
	folders = 1,
	files = 1,
	-- folder_arrows= 1
}
local nvim_tree_icons = {
	default = "",
	symlink = "",
	git = {
		unstaged = "✗",
		staged = "✓",
		unmerged = "",
		renamed = "➜",
		untracked = "★",
		deleted = "",
		ignored = "◌",
	},
	folder = {
		-- disable indent_markers option to get arrows working or if you want both arrows and indent then just add the arrow icons in front            ofthe default and opened folders below!
		-- arrow_open = "",
		-- arrow_closed = "",
		default = "",
		open = "",
		empty = "", -- 
		empty_open = "",
		symlink = "",
		symlink_open = "",
	},
}
-- following options are the default
-- each of these are documented in `:help nvim-tree.OPTION_NAME`
require("nvim-tree").setup({
	disable_netrw = true,
	hijack_netrw = true,
	-- open_on_setup = false,
	-- ignore_ft_on_setup = {},
	open_on_tab = false,
	hijack_cursor = false,
	update_cwd = false,
  -- nvim_tree_git_hl = 1,
  -- nvim_tree_show_icons =nvim_tree_show_icons,
  -- nvim_tree_icons = nvim_tree_icons,
  renderer = {
    highlight_git = true,
  },
  diagnostics = {
		enable = false,
		icons = {
			hint = "",
			info = "",
			warning = "",
			error = "",
		},
	},
	update_focused_file = {
		enable = false,
		update_cwd = false,
		ignore_list = {},
	},
	system_open = {
		cmd = nil,
		args = {},
	},
	filters = {
		dotfiles = false,
		custom = {},
	},
	view = {
		width = 30,
		-- height = 30,
		-- hide_root_folder = false,
		side = "right",
		-- mappings = {
		-- 	custom_only = false,
		-- 	list = {},
		-- },
	},
})
